package hc.bre.deci.action

import com.fasterxml.jackson.annotation.JsonInclude

import hc.bre.cmn.ListOption
import hc.bre.cmn.RuleScriptBuilder
import hc.bre.cmn.struct.DataStructItem

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class ActionDefinition extends ListOption {
	String type;//action type
	Object refer;
	Map<Integer, Integer> resultMap=[:];//result item id to variable id.

	@Override
	public ActionDefinition load(Map map) {
		super.load(map);

		type = map['type'];
		refer =  map['refer'];

		resultMap = hc.Util.loadIntegerMap(map['resultMap'], Integer.class)
		return this;
	}
}
